package com.itheima.visitor.dispatch.double_dispatch;

/**
 * @author zzw
 * @date 2025/10/26
 * @description 双分派
 */
public class Client {
    public static void main(String[] args) {
        Animal animal = new Animal();
        Animal dog = new Dog();
        Animal cat = new Cat();

        Execute exe = new Execute();
        animal.accept(exe);
        dog.accept(exe);
        cat.accept(exe);
    }
}
